package com.huobao.yunying.adapters;

import com.huobao.yunying.entity.ZhanquDetail;
import com.huobao.yunying.utils.ImageUtils;
import com.huobao.zhangying.R;

import android.content.Context;
import android.widget.ImageView;
import joanzapata.android.BaseAdapterHelper;
import joanzapata.android.QuickAdapter;

public class Adapter_Zhanqu_detail extends QuickAdapter<ZhanquDetail> {

	public Adapter_Zhanqu_detail(Context context) {
		super(context, R.layout.item_zhanqu_detail);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void convert(BaseAdapterHelper arg0, ZhanquDetail arg1) {
		ImageView imageView = arg0.getView(R.id.imageview);
		arg0.setText(R.id.tv_1, "品牌：" + arg1.brand_name).setText(R.id.tv_2, arg1.store_name).setText(R.id.tv_3,
				"展位：" + arg1.s_booths_no);
		ImageUtils.loadimg(imageView, arg1.brand_logo);
	}

}
